package ext.acae2.statements.bean;

@SuppressWarnings("rawtypes")
public class PartsCatalogBean implements Comparable {

	private String number;
	private String name;
	private String quantity;
	private String characterType;
	private String version;
	private String parentPartNumber;
	private String parentPartQuantity;
	private String material;

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getQuantity() {
		return quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

	public String getCharacterType() {
		return characterType;
	}

	public void setCharacterType(String characterType) {
		this.characterType = characterType;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getParentPartNumber() {
		return parentPartNumber;
	}

	public void setParentPartNumber(String parentPartNumber) {
		this.parentPartNumber = parentPartNumber;
	}

	public String getParentPartQuantity() {
		return parentPartQuantity;
	}

	public void setParentPartQuantity(String parentPartQuantity) {
		this.parentPartQuantity = parentPartQuantity;
	}
	
	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}
	
	@Override
	public int compareTo(Object arg0) {
		if(this.getNumber().equals(((PartsCatalogBean) arg0).getNumber())){
			return this.getParentPartNumber().compareTo(((PartsCatalogBean) arg0).getParentPartNumber());
		}else{
			return this.getNumber().compareTo(((PartsCatalogBean) arg0).getNumber());
		}
	}

}
